import api from '@/api/proxy'
export const getImageList = (file_id, page = 1, page_size = 12) => {
    return api.get('/iv/list', {
        params: { file_id, page, page_size }
    })
}

export const deleteSingleImage = (vector_id) => {
    return api.delete('/iv/delete', {
        params: { vector_id }
    })
}


// 新增：更新图片描述API
export const updateImageDesc = (vector_id, image_desc) => {
    return api.put('/iv/update',null, {
        params: {
            vector_id: vector_id,
            image_desc: image_desc
        }
    })
}